package com.ruoyi.cash.domain.persistantobject.pay;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单交易主项
 * </p>
 *
 * @author lzq
 * @since 2024-12-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("cash_pay_detail")
public class PayDetailPO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 交易明细编号，唯一标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 业务单元编号
     */
    private Integer segNo;

    /**
     * 交易编号
     */
    private String transactId;

    /**
     * 商品编号
     */
    private String orderId;

    /**
     * 购买数量
     */
    private Integer quantity;

    /**
     * 商品单价
     */
    private BigDecimal payPrice;

    /**
     * 该明细上应用的折扣金额
     */
    private BigDecimal discountApplied;


}
